home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mission to McDonaldLand
/
Mission To McDonaldLand.iso
/
calnz.dxr
/
00010_Script_audio_object
< prev
next >
Wrap
Text File
|
1998-10-25
|
1KB
|
70 lines
property myType,mychannel,myCastnumber,myDir,myFilename,mytitle,Objs
on birth me,myDirP,myFileP
global ll
set mytype = #audio
set myDir = myDirP
set myFilename = MyFileP
set myChannel = 1
set myCastNumber= getAudioCast(gvars)
set the filename of member myCastnumber = myDir&myFilename
set the name of member mycastnumber = myfilename
set mytitle = myFilename
return me
end birth
on playAudio me,FadeInTime
if soundBusy(myChannel) then
puppetsound mychannel,0
end if
if voidP(FadeInTime)=false then
sound fadein myChannel,FadeInTime
end if
puppetsound myFilename
end playAudio
--best not to use fadeout option
on stopAudio me,FadeOutTime
if voidP(FadeOutTime)=false then
sound fadeout myChannel,fadeOutTime
else
puppetsound myChannel,0
updatestage
end if
end stopAudio
on kill me
global gvars
puppetsound mychannel,0
returnAudioCast(gvars,myCastNumber)
end
on redrawObject me
nothing
end
on moveObjectOffscreen me
nothing
end
--Needs switchon and switch OFF and looking over with regard to does
--it have all required functions for redrawing etc
on enable me
nothing
end
on disable me
nothing
end
on switchOffObj me
puppetsound mychannel,0
end
on switchOnObj me
nothing
end